import { Component, Input, OnInit } from '@angular/core';
import { Express } from 'src/classes/entities';
import { DataService } from 'src/services/data.service';

@Component({
  selector: 'app-expressview',
  templateUrl: './expressview.component.html',
  styleUrls: ['./expressview.component.scss']
})
export class ExpressviewComponent implements OnInit {

  constructor(private dataService: DataService) { }

  ngOnInit(): void {
  }

  @Input()
  public get target(): Express {
    return this.internalTarget;
  }

  public set target(v: Express) {
    this.internalTarget = v;
  }

  private internalTarget: Express;

  timemarks: []
  twidth: number = 2000
  createScene() {
    this.dataService.createScene(this.internalTarget)
    console.log(this.internalTarget);
  }
  createEpisode() {
    this.dataService.createEpisode(this.internalTarget)
    console.log(this.internalTarget);
  }
  createAudience() {
    this.dataService.createAudience(this.internalTarget)

  }
}
